home comics writing pictures archive about

Set.h

Language: C++
Last Modified: 2022-09-10 5:29:28 PM UTC
File Size: 916 bytes
http://www.penguinstew.ca/example/CodeFormater/Set.h
#pragma once
#include <string>
#include <vector>
#include <regex>
#include <libxml/tree.h>
#include "TypeIdPair.h"
#include "State.h"
class Set
{
//style name of the colour to display
std::string colour;
//The regular expression to use when testing word boundaries
std::regex regEx;
std::string regExText;
std::regex wildRegEx;
std::string wildRegExText;
//Used with sym type to indicate words to test for
std::vector<std::string> words;
std::vector<TypeIdPair> startIds;
public:
static const std::string SET_PATTERN_WORD;
Set(xmlNodePtr xmlNode);
std::string GetColour();
std::regex GetRegEx();
std::regex GetWildRegEx();
std::vector<std::string> GetWords();
std::vector<TypeIdPair> GetStartIds();
int FindAndPrintSetWord(std::stringstream& lineStream, std::string line, int pos, TypeIdPair typeId, char preC, State currentState);
std::string ToString();
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34